package org.index.outofbounds;

public class Stringlength {

	public static void main(String[] args) {

		String s = "My name is durga";
		char[] k = s.toCharArray();
		int i = 0;
		for (i = 0; k[i] != '\0'; i++){}
//		for(char chr : k){
//			i++;
//		}
		System.out.println(i);
	}

}
